<template>
  <div v-loading="loading" >
    <GTable ref="table" :hasCheck="true" :hasEdit="true" :api="`/querySystemSetList/{page}/${$parent.detailNav}`" :columnSource="tableConfig" :otherHeight="30"
      @selection-change="data => tableSelectData = data" @setdialog="setdialog" ></GTable>
  </div>
</template>

<script>

export default {
  name: "systemset",
  data () {
    return {
      loading: false,
      tableConfig: [
        {
          label: this.$t('manage.configkey'),
          prop: "configkey",
          input: "input",
        },
        {
          label: this.$t('common.desc'),
          prop: "nsqldescrip",
          input: "input"
        },
        {
          label: this.$t('manage.effective'),
          prop: "nsqlvalue",
          input: "input",
        },
        {
          label: this.$t('app.default'),
          prop: "nsqldefault",
          input: "input",
        }
      ],
      tableSelectData: [],
    };
  },
  methods: {
    async getTableData (page, data) {
      this.$refs.table.getTableData()
    },
    //设置弹框
    setdialog (data) {
      this.$store.commit("setRouteData", data);
      this.$store.commit("setTemporary", this.$parent.detailNav);
      this.$router.push({ name: 'systemsetDeawer' });
    },
  },
};
</script>

